//
//  TabBarView.h
//  dyss_v2
//
//  Created by  smarthome on 16/1/27.
//  Copyright © 2016年 First Facility. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Masonry.h>

@class DYTabBarView;

@protocol DYTabBarDelegate <NSObject>

- (void)tabBar:(DYTabBarView *)tabBar didSelectItemFrom:(NSInteger)selIndex to:(NSInteger)toIndex;

@end

@interface DYTabBarView : UIView

@property (nonatomic,weak) id<DYTabBarDelegate>  delegate;

-(void)addTabbarButton:(UITabBarItem *)item;

-(void)layoutContentViews;

-(void)switchToIndex:(NSInteger)index;

@end
